﻿<%@ Page Language="C#" MasterPageFile="~/MasterALSafa.Master"AutoEventWireup="true" CodeBehind="SRV_Book_Stock_Record_Equality.aspx.cs" Inherits="School.Pages.BOOKS.SRV_Book_Stock_Record_Equality" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<%@ Register src="../UserControls/CampusPackage.ascx" tagname="CampusPackage" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <div style="float:right;">
        <table align="right" dir="rtl">
            <tr>
                <td colspan="1" style="padding-right: 15px;">
                   <div style="float:right;width:80px;">التاريخ
                     </div>
                    <div style="float:right;width:180px;">
                     <asp:DropDownList ID="ddlDates"  runat="server"
                        Width="150px" AppendDataBoundItems="True" AutoPostBack="True" 
                            onselectedindexchanged="ddlDates_SelectedIndexChanged">
                        <asp:ListItem Value="0">اختيار</asp:ListItem>
                    </asp:DropDownList>
                    </div>
                 
                </td>
                <td>
                    
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3" style="padding-right: 200px; height: 30px; padding-top: 5px;">
                 <div style="float: right;">
                        &nbsp; &nbsp; &nbsp; 
                        <a href="ReportPrint.aspx?Date=<%=ddlDates.SelectedItem.Text%>" style="text-decoration:none" target="_blank">
                            <asp:Label ID="PrntLabel" runat="server" Height="14px" Style="font-size: 10px; font-family: verdana;
                                color: #000000; border: 0px solid #D2CFCF; height: 14pt; width: 80pt; background-color: #D2CFCF;
                                text-align: center;" Text="طباعة" Visible="true" Width="80px"></asp:Label>
                        </a>&nbsp; &nbsp; &nbsp;
                    </div>
                   
                </td>
            </tr>
            <tr>
                <td colspan="3" style="color: Green">
                    <asp:Literal ID="lblResult" runat="server"></asp:Literal>
                </td>
            </tr>
           <tr>
                <td colspan="3" style="padding-right:40px;">
                 <asp:Panel ID="GrdPanel" Visible="true" runat="server">
                    <asp:GridView ID="gvdata" runat="server" 
                        AlternatingRowStyle-CssClass="GridItemAltername" AutoGenerateColumns="False" 
                        CssClass="Grid" DataKeyNames="BookId" FooterStyle-CssClass="GridHeaderFooter" 
                        HeaderStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" 
                        Width="600">
                        <Columns>
                            <asp:BoundField DataField="BookCode" HeaderText="كود الكتاب" />
                            <asp:BoundField DataField="BookName" HeaderText="الكتاب" />
                            <asp:BoundField DataField="SystemQty" HeaderText="الكميه المخزنيه" />
                            <asp:TemplateField HeaderText="الكميه الفعليه">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtQty" runat="server" Text='<%#Eval("Pysical_Qty")%>'
                                         ReadOnly="true"></asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="الفرق بين الكميات">
                                <ItemTemplate>
                                    <asp:TextBox ID="txtDifferance" runat="server" BackColor="White"
                                     Text='<%#Eval("Differance")%>'  ReadOnly="true">
                                   </asp:TextBox>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </asp:Panel>
                   </td>
              
            </tr>
            <tr>
              <td colspan="3" style="padding-right: 220px; padding-top: 10px; height: 20px;">
                    <asp:Button ID="btnEqual" runat="server" CssClass="graybutton" Text="تسويه" 
                        Width="90" onclick="btnEqual_Click"  />
                </td>
            </tr>
        </table>
    </div>  
    </ContentTemplate>
    </asp:UpdatePanel>
    
</asp:Content>
